import Vue from 'vue'
import Router from 'vue-router'
import NewsComponent from '../container/home'
import MarketComponent from '../container/market'
import CapitalComponent from '../container/capital'
import InvestmentComponent from '../container/investment'
import NewDatalsComponent from '../container/newDatails'
import HomeComponent from '../App'

Vue.use(Router)




export default new Router({
  mode:'hash',
  routes: [
    {
      path: '/',
      //name: 'home',
      component: HomeComponent,
      children:[
       {
         path: '/',
         name: 'news',
         component: NewsComponent
       },
       {
         path: '/market',
         name: 'market',
         component: MarketComponent
       },
       {
         path: '/capital',
         name: 'capital',
         component: CapitalComponent
       },
       {
         path: '/investment',
         name: 'investment',
         component: InvestmentComponent
       }
     ]
    },
    {
      path: '/newdatails',
      name: 'Datails',
      component:NewDatalsComponent
    }
  ]
})
